<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>基础信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="../../plugins/mui/mui.min.css">
    <link rel="stylesheet" href="../../css/my/security/index.css" />
    <script src="../../js/statistics.js"></script>
    <script src="../../js/fontset.js"></script>
</head>
<body>
<header class="mui-bar mui-bar-nav header">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">基础信息</h1>
</header>
<div class="mui-content content-info" id="content">
	
</div>	

<script type="text/javascript" src="../../plugins/jquery/jquery-3.1.0.min.js"></script>
<script src="../../plugins/mui/mui.min.js"></script>
<!--<script type="text/javascript" src="../plugins/mui/update.js"></script>-->
<script src="../../js/getApiToken.js"></script>
<script src="../../js/md5.js"></script>
<script src="../../js/life_housekeeper/windowTitleView.js"></script>
<script src="../../plugins/template/template.js"></script>
<script type="text/html" id="group">
	<div class="group" >
		<div >
			{{each list as item i}}
			<ul class="mui-table-view">
		        <li class="mui-table-view-cell">
		            <p>社会保障号：</p>
		            <p class="mui-ellipsis-2">{{item.AKC020}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>参保人姓名：</p>
		            <p class="mui-ellipsis-2">{{item.AAC003}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>单位名称：</p>
		            <p class="mui-ellipsis-2">{{item.AAB069}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>单位类型：</p>
		            <p class="mui-ellipsis-2">{{item.AAB019}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>身份证号：</p>
		            <p class="mui-ellipsis-2">{{item.AAC002}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>参保状态：</p>
		            <p class="mui-ellipsis-2">{{item.AAC008}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>用工形式：</p>
		            <p class="mui-ellipsis-2">{{item.AAC013}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>人员状态：</p>
		            <p class="mui-ellipsis-2">{{item.RYZT}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>所属街道：</p>
		            <p class="mui-ellipsis-2">{{item.JDM}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>家庭住址：</p>
		            <p class="mui-ellipsis-2">{{item.AAE006}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>联系电话：</p>
		            <p class="mui-ellipsis-2">{{item.AAE005}}</p>
		        </li>
		        <li class="mui-table-view-cell">
		            <p>区域归属：</p>
		            <p class="mui-ellipsis-2">{{item.AAB324}}</p>
		        </li>
		   </ul>
		   {{/each}}
		  
		</div>
	</div>
	
</script>
<script type="text/javascript">
	mui.init();
	mui.plusReady(function(){
		var self = plus.webview.currentWebview();
		plus.nativeUI.showWaiting('正在查询，请稍后',{
			modal:false,
			back:'close'
		});
		myAjax('home/Social/userInfo','post',{
			'userId': plus.storage.getItem('cg_user_id')
		},function(res){
			plus.nativeUI.closeWaiting();
			//console.log(JSON.stringify(res));
			if(res.code == '0'){
				var data = res.data;
				if(data){
					var groupHtml = template('group',data);
					document.querySelectorAll('.mui-content')[0].innerHTML = groupHtml;
				}	
			}else{
				var msg = res.message;
				mui.toast('查询失败，'+msg);
				setTimeout(function(){
					mui.back();
				},1500);
				console.log(msg);
			}
		})
		//重写back
		var back = function(){
	            self.close();
	        }
		 mui.back = function(){
			plus.nativeUI.closeWaiting();
			back();	
		}
	})
	
</script>
</body>
</html>
